package com.gill;

import com.gill.aop.controller.Controller1;
import com.gill.aop.introduction.ExtraService;
import com.gill.entity.UserFactoryBean;
import com.gill.ioc.circularDependency.BoyFriend;
import com.gill.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

public class Main {
	public static void main(String[] args) throws IOException {
		AnnotationConfigApplicationContext ioc = new AnnotationConfigApplicationContext(AppConfig.class);
		// 测试spring容器是否能够通过import注解管理到容器外部的实例
		UserFactoryBean bean = (UserFactoryBean) ioc.getBean("&com.gill.entity.UserFactoryBean");
		System.out.println(bean.getObjectType());//class com.gill.entity.User
	}
}
